Skip to content

Conversation

jeremydick
Copy link
Contributor

Set cs_is_gpio only if there is a GPIO CS, configure the CS as a native hardware CS if not

This fixes incorrectly trying to use a GPIO CS when there isn't one

@jeremydick
Copy link
Contributor Author

Failing CI test is due to #97379

Set cs_is_gpio only if there is a GPIO CS, configure the CS as
a native hardware CS if not

This fixes incorrectly trying to use a GPIO CS when there isn't one

Signed-off-by: Jeremy Dick <[email protected]>
Copy link

@diegoherranz
Copy link
Contributor

+1 to this PR
I use a MIPI DBI screen with hardware-controlled chip select which suffered this regression.
I've tested this PR and it fixes the regression successfully.

Thanks.

@cfriedt cfriedt merged commit 011a357 into zephyrproject-rtos:main Oct 14, 2025
26 checks passed
.delay = (delay_), \
.cs_is_gpio = true, \
COND_CODE_1(DT_SPI_DEV_HAS_CS_GPIOS(node_id), \
(SPI_CS_CONTROL_INIT_GPIO(node_id, _delay)), \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(SPI_CS_CONTROL_INIT_GPIO(node_id, _delay)), \
(SPI_CS_CONTROL_INIT_GPIO(node_id, delay_)), \

Caught by #97581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants